package yxy.game.pm2.module.mail;

public enum MailTypeEnum {
	Mail(1), // 普通邮件
	Notice(2),// 公告
	;

	private int number;

	private MailTypeEnum(int number) {
		this.number = number;
	}

	public int getNumber() {
		return number;
	}

	static public MailTypeEnum forNumber(int value) {
		switch (value) {
		case 2:
			return Notice;
		default:
			return Mail;
		}
	}
}
